package com.xc.hotelmgr.order.modules.order.service.impl;

import com.xc.hotelmgr.order.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xc.hotelmgr.order.common.utils.PageUtils;

import com.xc.hotelmgr.order.modules.order.dao.WorkOrderDao;
import com.xc.hotelmgr.order.modules.order.entity.WorkOrderEntity;
import com.xc.hotelmgr.order.modules.order.service.WorkOrderService;


@Service("workOrderService")
public class WorkOrderServiceImpl extends ServiceImpl<WorkOrderDao, WorkOrderEntity> implements WorkOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WorkOrderEntity> page = this.page(
                new Query<WorkOrderEntity>().getPage(params),
                new QueryWrapper<WorkOrderEntity>()
        );

        return new PageUtils(page);
    }

}